//
//  UULoginManager.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 13/01/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UUFoundation/DKBaseManager.h>
#import "UUCurrentUser.h"

#define GetLoginManager()       ([UULoginManager sharedInstance])
#define GetCurrentUser()        (GetLoginManager().currentUser)

@interface UULoginManager : DKBaseManager

@property (nonatomic, strong) UUCurrentUser *currentUser;

- (BOOL)isLogin;

- (void)loginWithMobile:(NSString *)mobile
             verifyCode:(NSString *)verifyCode
          completeBlock:(void (^)(NSError *error))completeBlock;

- (void)loginWithUserId:(id)userId token:(NSString *)token;

- (void)logout;

- (void)sendVerifyCodeWithMobile:(NSString *)mobile completeBlock:(void (^)(NSError *error))completeBlock;

@end
